package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxProduct;
import com.cake.entity.pojo.ProductPoJo;

public interface XxProductMapper extends IBaseDao<XxProduct> {
    int deleteByPrimaryKey(Long id);

    int insert(XxProduct record);

    int insertSelective(XxProduct record);

    XxProduct selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XxProduct record);

    int updateByPrimaryKey(XxProduct record);
    
    /**
     * 列表查询商品
     * @param xxProduct
     * @return
     */
    List<XxProduct> selectProductInfos(XxProduct xxProduct);
    /**
     * 商品详情查询
     * @param productId
     * @return
     */
    ProductPoJo selectProductDetails(Long productId);
 
    /**
     * 通过商品分类id查询出商品信息
     * @param productCategoryId
     * @return
     */
    List<XxProduct> selectProductsByCategory(Long productCategoryId);
    
}